package com.fa4j.system.account.api;


import com.fa4j.system.account.dto.AccountDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;
import java.util.List;

/**
 * 系统账号接口
 */
@FeignClient(contextId = "accountClient", name = "fa4j-system", path = "/system/account")
public interface AccountClient {

    /**
     * 根据 id 查询账号信息
     *
     * @param accountIds 账号 ID 集合
     * @return 账号列表
     */
    @GetMapping("byIds")
    List<AccountDTO> queryAccountsByIds(@RequestParam("accountIds") Collection<Long> accountIds);

}
